package org.batatasframework.web.event;

import javax.servlet.http.HttpServletRequest;

import org.batatasframework.common.ParameterReader;
import org.batatasframework.web.RequestParameterReader;

import cn.bonoon.kernel.security.LogonUser;

public class AccessEvent {
	
	private final Object source;
	/** 当前访问的时间 */
	private final long timeMillis;
	private final LogonUser user;
	private final ParameterReader parameter;
	
	public AccessEvent(LogonUser user, HttpServletRequest request, Object source){
		this.user = user;
		this.source = source;
		this.parameter = new RequestParameterReader(request);
		this.timeMillis = System.currentTimeMillis();
	}
}
